/**
 * Created by yeyingpc on 2017/6/7.
 */
import React, { Component } from 'react';
import { Image } from 'react-native';

class TabBarIcon extends Component {
    render() {
        const selectedImage = this.props.selectedImage || this.props.normalImage;
        return (
            <Image
                source={this.props.focused ? selectedImage : this.props.normalImage}
                style={{ tintColor: this.props.tintColor, width: 25, height: 25}}
            />
        )
    }
}

export default TabBarIcon;